'use strict';

/**
 * @param {Egg.Application} app - egg application
 */
module.exports = app => {
  const { router, controller, jwt } = app;
  router.get('/', controller.home.index);
  // console.log(controller)
  // 用户注册的接口
  router.put('/register', controller.user.register.index)
  // 登录接口
  router.post('/login', controller.user.login.index)
};
